import {PluginCommand} from "../Command/PluginCommand";

/**
 * 该类用于自由曲面取点工具的Command层接口实现
 */
class FacePointsCommand extends PluginCommand {
    constructor() {
        super();
    }
    /**
     * 计算曲面上点坐标接口
     *
     * @param {params} 平面、曲面的id和点个数等信息
     * @param {cb} 回调参数
     */
    computeFacePoints(params, cb) {
        this.toolQuery.computeFacePoints(params).then(res => cb(res.data));
    }
}

const facePointsCommand = new FacePointsCommand();
export {facePointsCommand};